package com.base.service;

import java.util.List;
import com.base.po.voip.Weeks;
import com.base.utils.Page;

public interface WeeksService {
	int deleteByPrimaryKey(Integer id);

	int insert(Weeks record);

	int insertSelective(Weeks record);

	Weeks selectByPrimaryKey(Integer id);

	Weeks selectByCount(String parentid, String subid, String createtime);

	List<Weeks> selectByAll(Weeks record);

	int updateByPrimaryKeySelective(Weeks record);

	int updateByPrimaryKey(Weeks record);

	// 商家的签到信息
	Weeks countByShopAll(String shopid, String mobile, String appname, String username, String shopname,
                         String createtime);

	List<Weeks> selectByShopAll(Page page, String shopid, String mobile, String appname, String username,
                                String shopname, String createtime);

	// 代理商的签到信息
	Weeks countByParentAll(String parentid, String mobile, String appname, String username, String shopname,
                           String createtime);

	List<Weeks> selectByParentAll(Page page, String parentid, String mobile, String appname, String username,
                                  String shopname, String createtime);

	// 用户的签到信息
	List<Weeks> selectBySubAll(Page page, String parentid, String subid);

	Integer countByUserID(String subid, String parentid);
}
